﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using MyFloridaHouse.libSvDTO;

namespace MyFloridaHouse.libSTO
{
	/// <summary>
	/// Data Dictionary STO (server transfer object)
	/// </summary>
    [DataContract]
    public class DataDictionarySTO
    {
        List<DataDictionaryDTO> _dictionary;
        string _errorMessage;
        int _layerID;

		/// <summary>
		/// Initializes a new instance of the <see cref="DataDictionarySTO"/> class.
		/// </summary>
        public DataDictionarySTO()
        {
            _dictionary = new List<DataDictionaryDTO>();
            _errorMessage = "";
            _layerID = 0;
        }

		/// <summary>
		/// Gets or sets the dictionary.
		/// </summary>
		/// <value>The dictionary.</value>
        [DataMember]
        public List<DataDictionaryDTO> dictionary
        {
            get { return _dictionary; }
            set { _dictionary = value; }
        }

		/// <summary>
		/// Gets or sets the layer ID.
		/// </summary>
		/// <value>The layer ID.</value>
        [DataMember]
        public int layerID
        {
            get { return _layerID; }
            set { _layerID = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }

    }
}
